import {IsNotEmpty, IsString} from "class-validator";
import {ApiProperty} from "@nestjs/swagger";

export class CreateOptionDto {
  @ApiProperty({example: '', description: '选项文本'})
  @IsString()
  @IsNotEmpty()
  optionText: string;

  @ApiProperty({example: '', description: '选项进度条颜色'})
  @IsString()
  optionProgressColor: string;
}
